package com.sofwin.yyb.service;

import com.sofwin.yyb.entity.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    void addUser(User user);

    boolean deleteById(Integer id);

    void updateByNickname(Map<String,Object> map);
    void updateByPassword(Map<String,Object> map);
    void updateByPhone(Map<String,Object> map);
    void updateByAvatar(Map<String,Object> map);

    User findByUser(User user);
    User findById(Integer id);

    List<User> findAllUser();

    List<User> findAllUserByPage(Map<String,Object> map);

    Integer userCount(String search);
}
